package com.zero.java.base.readFile;

import java.nio.file.Path;
import java.nio.file.Paths;

public class getFilePath {

	private final static String file_name = "cfg/test.txt";
	private final static String file_path = "cfg/work";
	
	public static void main(String[] args) {
		
		Path path = Paths.get(file_path,"test.txt");
		Path parent = path.getParent();
		Path fileName = path.getFileName();
		Path root = path.getRoot();
		//Path resolve = path.resolve("file");
		System.out.println(parent);
		System.out.println(fileName);
		System.out.println(root);
	}
}
